<?php load_lib('/util/file'); ?>
<div class="divOption"><a href="<?php echo $arrData['strAddEpURL']; ?>">添加剧集</a> <a href="<?php echo $arrData['strEditEpURL']; ?>">编辑剧集</a> <a href="<?php echo $arrData['strEditSeriesURL']; ?>">编辑节目</a></div>
<div class="divEpDetail">
	<table class="tblEpDetail">
		<tr>
			<th>中文名称:</th>
			<td><?php echo $arrHtml['arrSeries']['CNAME']; ?></td>
			<th>节目种类:</th>
			<td><?php echo $arrHtml['arrSeries']['CLASSSTR']; ?></td>
		</tr>
		<tr>
			<th>英文名称:</th>
			<td><?php echo $arrHtml['arrSeries']['ENAME']; ?></td>
			<th>节目分类</th>
			<td><?php echo $arrHtml['arrSeries']['TYPESTR']; ?></td>
		</tr>
		<tr>
			<th>节目分辨率:</th>
			<td><?php echo $arrHtml['arrSeries']['RATIOSTR']; ?></td>
			<th>下载完成时间:</th>
			<td><?php echo date('Y-m-d H:i:s',$arrHtml['arrSeries']['DOWNLOADTIME']); ?></td>
		</tr>
		<tr>
			<th>剧集数量:</th>
			<td><?php echo $arrHtml['arrSeries']['EPCNT']; ?></td>
			<th>剧集大小:</th>
			<td><?php echo util_file::formatFileSize($arrHtml['arrSeries']['EPSIZE'],'auto-sub-dec'); ?></td>
		</tr>
	</table>
</div>
<div class="divEpList">
    <?php if(!empty($arrHtml['arrEpList'])){ ?>
        <?php foreach($arrHtml['arrEpList'] as $strFilter=>$arrList){ ?>
    	<div class="divFilter">
    	    <ul>
    	        <li><?php echo $arrList[0]['RATIOSTR'].' '.$arrList[0]['DUBLANGSTR']; ?></li>
    	    </ul>
    	</div>
    	<div class="divList">
            <ul>
                <?php foreach($arrList as $arrEp){ ?>
                <li><label for="chkEp_<?php echo $arrEp['FILEKEY']; ?>"><input name="chkEp" type="checkbox" id="chkEp_<?php echo $arrEp['FILEKEY']; ?>" value="<?php echo $arrEp['FILEKEY']; ?>" /><?php echo $arrEp['ORDERSTR']; ?></label></li>
                <?php } ?>
            </ul>
        </div>
    	<?php } ?>
    	<div class="divTrans">
    	    <input name="btnTrans" id="btnTrans" type="button" value="传输" />
    	</div>
	<?php }else{ ?>
	    还没有剧集
	<?php } ?>
</div>
<?php $this->startLScript(); ?>
<script type="text/javascript">
(function(){
	new Detail();
})();
</script>
<?php $this->endLScript(); ?>